<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        .box {
            width: 200px;
            height: 200px;
            background-color: blueviolet;
            /* transform: translate(x, y); */
            /* transform: translate(300px, 300px); */
            /* 单独设置某一个方向的位置移动 */
            /* transform: translateX(300px); */
            transform: translateY(300px);
        }
    </style>
</head>

<body>
    <div class="box"></div>
</body>

</html>